package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.ProductBargain;
import com.jic.market.request.rest.bargain.ProductBargainRestRequest;
import com.jic.market.response.rest.bargain.ProductBargainRestResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 砍价活动商品关联表
 * @author : 
 * @email : 
 * @since : 2020-09-10 06:18:31
 * @version : v1.0.0
 */
@Mapper
public interface PromotionProductBargainMapper {

    long insert(ProductBargain productBargain);

    long delete(Long id);

    long update(ProductBargain productBargain);

    ProductBargain queryByPrimaryKey(Long id);

    List<ProductBargain> query(ProductBargain productBargain);

    List<ProductBargain> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("productBargain") ProductBargain productBargain);

    long queryPageCount(ProductBargain productBargain);

    List<ProductBargainRestResponse> listRestPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("productBargainRestRequest") ProductBargainRestRequest productBargainRestRequest);

    long listRestPageCount(ProductBargainRestRequest productBargainRestRequest);
}